package com.oscchina.xushao.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.oscchina.xushao.R;
import com.oscchina.xushao.adapter.DrawerAdapter;

/**
 * 侧边栏
 */
public class DrawerFragment extends Fragment {

     private ListView mListView;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View contentView = inflater.inflate(R.layout.fragment_navigation_drawer, null);

//        mListView = (ListView) contentView.findViewById(R.id.navigation_drawer_list_view);
//        mListView.setBackgroundColor(getResources().getColor(R.color.drawer_bg_light));
//
//        View headerView = inflater.inflate(R.layout.fragment_navigation_drawer_header, mListView, false);
//        mListView.addHeaderView(headerView);
//
//        View footerView = inflater.inflate(R.layout.fragment_navigation_drawer_footer, mListView, false);
//        mListView.addFooterView(footerView);
//
//        DrawerAdapter drawerAdapter = new DrawerAdapter(mListView);
//        mListView.setAdapter(drawerAdapter);

        return contentView;
    }

}
